{% extends 'maintemplate.html' %}
{% block contents %}
<span class="breadcrumps">
&gt; <a href="{% url hakaze.forums.views.channellist %}">Site Index</a>
{% for p in thread.channel.get_path %}
  &gt; <a href="{% url hakaze.forums.views.channelview p.codename %}">{{ p.name }} </a>
{% endfor %}
&gt; <a href="{% url hakaze.forums.views.threadview post.thread.channel.codename,post.thread.get_idinchannel %}">{{ thread.title }}</a>
</span>
<br/><br/>

<h2>{{ thread.title|escape }}</h2>

<p><b>Page(s):
{% for p in pagerange %}
   <a href="{% url hakaze.forums.views.threadview channel.codename,thread.get_idinchannel,p,pagesize %}"> -{{ p }}- </a>
{% endfor %}</b></p>
<br/>
Post/Page : 
<a href="{% url hakaze.forums.views.threadview channel.codename,thread.get_idinchannel,1,20 %}/"> View 20 Posts </a>
|<a href="{% url hakaze.forums.views.threadview channel.codename,thread.get_idinchannel,1,50 %}/"> View 50 Posts </a>
|<a href="{% url hakaze.forums.views.threadview channel.codename,thread.get_idinchannel,1,100 %}"> View 100 Posts </a> | <a href="{% url hakaze.forums.views.feed_thread_latestposts channel.codename,thread.get_idinchannel,"atom1" %}">ATOM Feed</a>
<br/><br/>
<hr/>
<br/><br/>
{% for post in posts %}
   {% include 'forums/posttemplate.html' %} 
{% endfor %}
<br/>
<br/>
<p><b>Page(s):
{% for p in pagerange %}
   <a href="{% url hakaze.forums.views.threadview channel.codename,thread.get_idinchannel,p,pagesize %}"> -{{ p }}- </a>
{% endfor %}</b></p>
<br/><br/>

{% if not thread.is_locked %}
<blockquote>
<h2>Reply</h2>
<form class="newpostform" action='{% url hakaze.forums.views.threadview channel.codename,thread.get_idinchannel,"last",pagesize %}' method='post'>
{% include "forums/newpostform.html" %}
</form>
</blockquote>
{% endif %}

{% endblock contents %}
